const mongoose =require("mongoose");
const Schema=mongoose.Schema;

//Create Scahema
const GreatSchema=new Schema({
    post:{
        type: Schema.Types.ObjectId,
    },
    user:{
        type: Schema.Types.ObjectId,
        required:true,
    },
    date:{
        type:Date,
        default:Date.now
    },
})

module.exports=Great=mongoose.model("greats",GreatSchema);